const express = require("express");
const paramsRouter = express.Router();
const url = require("url")



paramsRouter.get("/list", (req, res) => {
  console.log(url.parse(req.url, true).query);

  res.send({
    returnCode: 200,
    data: {
      msg: "测试通过"
    }
  })
})

paramsRouter.post("/login", (req, res) => {
  const username = req.body.username;
  const password = req.body.password;
  console.log(username + "-" + password);
  res.send({
    returnCode: 200,
    data: {
      msg: "测试通过"
    }
  })
})

module.exports = paramsRouter;